package de.rj.urwalking.data;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(name="urw_view")
public class ViewChange {
    @Element(name="newview")
	private int viewType; // 0 = from above; 1 = street
    @Element(name="tschangedon")
	private long timestamp;
	
	public ViewChange(int viewType) {		
		this.viewType = viewType;		
		timestamp = System.currentTimeMillis();		
	}

	public int getViewType() {
		return viewType;
	}

	public long getTimestamp() {
		return timestamp;
	}
	
}
